<?php
defined('_JEXEC') or die('Restricted access');
require_once(JPATH_COMPONENT.DS.'data'.DS.'DAOFactory.php');
require_once('JDAOFTUser.php');
require_once('JDAORoute.php');
require_once('JDAOPoi.php');
require_once('JDAOFTRouteConfig.php');
require_once('JDAOFTPOIConfig.php');
require_once('JDAORouteComment.php');
require_once('JDAOPOISubCategory.php');
require_once('JDAOPOICategory.php');
require_once('JDAOUserRoutes.php');


class JDAOFactory extends DAOFactory{
	
	private static $instance;
	public static function getInstance() 
	    {
	        if (!isset(self::$instance)) {
	            $c = __CLASS__;
	            self::$instance = new $c;
	        }
	        return self::$instance;
	}
	
	private function __construct(){
		
	}
	
	public function getDAORoute(){
		return new JDAORoute();
	}

	public function getDAOPoi(){
		return new JDAOPoi();
	}
	
	public function getDAOFTRouteConfig(){
		return new JDAOFTRouteConfig();
	}
	
	public function getDAOFTPOIConfig(){
		return new JDAOFTPOIConfig();
	}
	
	public function getDAOFTUser(){
		return new JDAOFTUser();
	}
	
	public function getDAOPOISubCategory(){
		return new JDAOPOISubCategory();
	}
	
	public function getDAOPOICategory(){
		return new JDAOPOICategory();
	}
	
	public function getDAOUserRoutes(){
		return new JDAOUserRoutes();
	}
	
	public function getDAORouteComment(){
		return new JDAORouteComment();
	}
}
